package com.cqs.learning.spring.cloud.producer.web.controller;

import com.alibaba.fastjson.JSONObject;
import com.cqs.learning.spring.cloud.producer.service.DoubanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lixw
 * @Date 5/20/20 12:14 AM
 */
@RestController
@Slf4j
public class DoubanController {

    @RequestMapping(value = "/movies")
    public JSONObject doubanMovice() {
        JSONObject jsonObject = new DoubanService().mockReqMovie();
        log.info("返回请求数据:", jsonObject);
        return jsonObject;
    }

}
